import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/userHouseRefund/index',
    method: 'get',
    params: query
  })
}

export function getTypes() {
  return request({
    url: '/userHouseRefund/types',
    method: 'get'
  })
}

export function refund(query) {
  return request({
    url: '/userHouseRefund/refund',
    method: 'post',
    data: query
  })
}